package com.lyj.io.module.sys.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.lyj.io.common.utils.PageUtils;
import com.lyj.io.common.utils.Query;
import com.lyj.io.module.sys.dao.SysLogDao;
import com.lyj.io.module.sys.entity.SysLog;
import com.lyj.io.module.sys.service.SysLogService;
import org.apache.commons.lang.StringUtils;
import org.springframework.stereotype.Service;

import java.util.Map;

/**
 * 系统日志接口
 * @author:liyajie
 * @createTime:2022/1/5 11:23
 * @version:1.0
 */
@Service("sysLogService")
public class SysLogServiceImpl extends ServiceImpl<SysLogDao, SysLog> implements SysLogService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        QueryWrapper<SysLog> queryWrapper = new QueryWrapper<SysLog>();
        IPage<SysLog> page = this.page(
            new Query<SysLog>().getPage(params),
                queryWrapper
        );

        return new PageUtils(page);
    }
}
